import vue from 'vue'
import router from 'vue-router'
vue.use(router)
import group from '../components/group.vue'
import user from '../components/user.vue'
import err from '../components/err.vue'
export default new router({
    routes: [
        {
            path: "/",
            redirect: "group"
        },
        {
            path: "/group",
            name: "group",
            component: group
        },
        {
            path: "/user",
            name: "user",
            component: user,
            children: [
                {
                    path: "/helloto",
                    name: "helloto",
                    component: () => import("../components/helloto.vue")
                },
                {
                    path: "/user",
                    redirect: "/helloto"
                },
                {
                    path: "/uze",
                    name: "uze",
                    component: () => import("../components/uze.vue")
                },
                {
                    path: "/sele",
                    name: "sele",
                    component: () => import("../components/sele.vue")
                },
                {
                    path: "/kfjh",
                    name: "kfjh",
                    component: () => import("../components/kfjh.vue")
                },
                {
                    path: "/khxxgl",
                    name: "khxxgl",
                    component: () => import("../components/khxxgl.vue")
                },
                {
                    path: "/luis",
                    name: "luis",
                    component: () => import("../components/luis.vue")
                },
                {
                    path: "/serve-create",
                    name: "serve-create",
                    component: () => import("../components/serve-create.vue")
                },
                {
                    path: "/serve-assignment",
                    name: "serve-assignment",
                    component: () => import("../components/serve-assignment.vue")
                },
                {
                    path: "/serve-dispose",
                    name: "serve-dispose",
                    component: () => import("../components/serve-dispose.vue")
                },
                {
                    path: "/serve-feedback",
                    name: "serve-feedback",
                    component: () => import("../components/serve-feedback.vue")
                },
                {
                    path: "/serve-pigeonhole",
                    name: "serve-pigeonhole",
                    component: () => import("../components/serve-pigeonhole.vue")
                },
                {
                    path: "/User-management",
                    name: "User-management",
                    component: () => import("../components/User-management.vue")
                },
                {
                    path: "/Role-management",
                    name: "Role-management",
                    component: () => import("../components/Role-management.vue")
                },
                {
                    path: "/Rights-management",
                    name: "Rights-management",
                    component: () => import("../components/Rights-management.vue")
                }
            ]
        },
        {
            path: "*",
            component: err
        }
    ]
})